package com.mes_for_xxxxxx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 生产批次表
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("batches")
@ApiModel(value="Batches对象", description="生产批次表")
public class Batches implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "批次ID")
    @TableId(value = "Batch_ID", type = IdType.AUTO)
    private Integer batchId;

    @ApiModelProperty(value = "产品ID（无物理外键）")
    private Integer productId;

    @ApiModelProperty(value = "物料ID")
    private Integer materialId;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "批次二维码")
    private String QRCode;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;


}
